package com.rz.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "t_role_resource")
public class RoleResource {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer roleId;
    private Integer resId;
    private Integer leaf;

    public RoleResource(){}
    public RoleResource(int roleId, Integer resId,Integer leaf) {
        this.roleId = roleId;
        this.resId = resId;
        this.leaf = leaf;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }
}
